<?php

 /**
  * @package JooS
  * @subpackage PHPackager
  */

  require_once "JooS/PHPackager/Relation/Abstract.php";

  require_once "JooS/PHPackager/Relation/Standalone.php";

  class JooS_PHPackager_Relation_Extension extends JooS_PHPackager_Relation_Abstract implements JooS_PHPackager_Relation_Standalone {
    /**
     * @return bool
     */
    public function exists() {
      return extension_loaded($this->getName());
    }

    /**
     * @return string
     */
    public function __toString() {
      return "PHP extension 'php_" . $this->getName() . "'";
    }
  }
